module.exports = (req, res) => {
  console.log('uihsdfihjdsgfhjdshfjsdhsdhfsdfhfsdfhsdfkfhsdkfhkhfshfshk')
  // 删除session
  req.session.destroy(() => {
    // 删除cookie
    res.clearCookie("connect.sid");
    // 重定向到登录页面
    res.redirect("/admin/login");
    // 重置app.locals.userinfo
    req.app.locals.userInfo = null;
  });
};
